from flask_restful import Api

from apps.settingApi.api.chart.views import chartListView,chartPkView,chartGetDataListView,chartDataListView,chartDataPkView

chart_api = Api(prefix='/setting/chart/')

# 看板列表操作
chart_api.add_resource(chartListView,'/chartlist/',endpoint="chartlist")
# 看板单个操作
chart_api.add_resource(chartPkView,'/chartpk/<pk>/',endpoint="chartpk")
# 看板预览页面获取数据
chart_api.add_resource(chartGetDataListView,'/chartgetdatalistview/',endpoint="chartgetdatalistview")

# 数据中心列表操作
chart_api.add_resource(chartDataListView,'/chartdatalist/',endpoint="chartdatalist")

# 数据中心列表操作
chart_api.add_resource(chartDataPkView,'/chartdatapk/<pk>/',endpoint="chartdatapk")
